<?php
require_once 'class/NHANVIEN.php';

if (isset($_POST['method'])) {
	$result = null;
	
	switch ($_POST['method']) {
		case 'search':
		$filters = json_decode($_POST['data'], true);
		$result = NHANVIEN::Select($filters);
		break;
	}

	header('Content-type: application/json');
	echo json_encode($result);
}
?>